package com.qiyadeng.company.biz;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class RespCardInfo2 {
	private Information2 information;
	public Information2 getInformation() {
		return information;
	}

	public void setInformation(Information2 information) {
		this.information = information;
	}

	public static RespCardInfo2 getCardInfo2FromXmlString(String xml){
		
			XStream xstream = new XStream(new DomDriver());
			xstream.alias("informations", RespCardInfo2.class);
			xstream.aliasField("information", RespCardInfo2.class, "information");
			//xstream.aliasField("cardno", Information.class, "cardno");
			//xstream.aliasField("cardBalance", Information.class, "cardbalance");
			//xstream.aliasField("cardFreezeBalance", Information.class, "cardfreezebalance");
			//xstream.aliasField("cardIntegral", Information.class, "cardintegral");
			//xstream.aliasField("othBala", Information.class, "othbala");
			//xstream.aliasField("merRate", Information.class, "merrate");
			//xstream.aliasField("typeId", Information.class, "typeid");
			//xstream.aliasField("typeName", Information.class, "typename");
			
			RespCardInfo2 respCardInfo2 = (RespCardInfo2)xstream.fromXML(xml); 
			return respCardInfo2;
	}
	
	
	
	class Information2{
		private String cardno;
		private String cardbalance;
		private String cardfreezebalance;
		private String cardintegral;
		private String othbala;
		private String merrate;
		private String typeid;
		private String typename;
		public String getCardno() {
			return cardno;
		}
		public void setCardno(String cardno) {
			this.cardno = cardno;
		}
		public String getCardbalance() {
			return cardbalance;
		}
		public void setCardbalance(String cardbalance) {
			this.cardbalance = cardbalance;
		}
		public String getCardfreezebalance() {
			return cardfreezebalance;
		}
		public void setCardfreezebalance(String cardfreezebalance) {
			this.cardfreezebalance = cardfreezebalance;
		}
		public String getCardintegral() {
			return cardintegral;
		}
		public void setCardintegral(String cardintegral) {
			this.cardintegral = cardintegral;
		}
		public String getOthbala() {
			return othbala;
		}
		public void setOthbala(String othbala) {
			this.othbala = othbala;
		}
		public String getMerrate() {
			return merrate;
		}
		public void setMerrate(String merrate) {
			this.merrate = merrate;
		}
		public String getTypeid() {
			return typeid;
		}
		public void setTypeid(String typeid) {
			this.typeid = typeid;
		}
		public String getTypename() {
			return typename;
		}
		public void setTypename(String typename) {
			this.typename = typename;
		}

	}
}
